
include $(PROJECT_ROOT)/autoconfig.mk

obj-$(CONFIG_ISP_BPC)	+= bpc.o
obj-$(CONFIG_ISP_FFC)	+= ffc.o
obj-$(CONFIG_IPS_SPC)	+= spc.o

inc-$(CONFIG_ISP)    	+= $(INCLUDE_DIR)/isp/isp.h
inc-$(CONFIG_ISP_BPC)  	+= $(INCLUDE_DIR)/isp/bpc.h
inc-$(CONFIG_ISP_FFC)  	+= $(INCLUDE_DIR)/isp/ffc.h
inc-$(CONFIG_IPS_SPC) 	+= $(INCLUDE_DIR)/isp/spc.h

INCLUDES := -I$(INCLUDE_DIR) \
			-I$(INCLUDE_DIR)/generated \
			-I$(INCLUDE_DIR)/isp

all: $(obj-y)
$(obj-y):
%.o : %.c
	$(CC) $(CFLAGS) $(ARCH_CPPFLAGS) $(INCLUDES) -c $< -o $(BUILD_OJB_DIR)/$@

.PHONY: install
install:
	cp $(inc-y) $(INSTALL_INC_DIR)